/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package utilities;

import javax.swing.JOptionPane;

/**
 *
 * @author Fangcheng Jia
 */
public class Prompt {
    public static void info(String msg){
        JOptionPane.showMessageDialog(null, msg, "Information",
                JOptionPane.INFORMATION_MESSAGE);
    }
    
    public static void warning(String msg){
        JOptionPane.showMessageDialog(null, msg, "Warning",
                JOptionPane.INFORMATION_MESSAGE);
    }
    
    public static void warning(String warning_macro, String particular){
        JOptionPane.showMessageDialog(
                null,
                String.format(warning_macro, particular),
                "Warning",
                JOptionPane.INFORMATION_MESSAGE);
    }
    
    public static void warning(
            String warning_macro,
            String particular,
            String format){
        JOptionPane.showMessageDialog(
                null,
                String.format(warning_macro, particular, format),
                "Warning",
                JOptionPane.INFORMATION_MESSAGE);
    }
}